﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
namespace Catering
{
    public partial class NoticeManage : System.Web.UI.Page
    {
        // 属性
        Catering_Rules.Announcement Ann = new Catering_Rules.Announcement();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.NoticeRept.DataSource = Ann.GetList(10, "", "Release desc");
                this.NoticeRept.DataBind();
                Session["userid"] = 2;
                ShowUNReadCount(Session["userid"].ToString());
            }
        }

        private void ShowUNReadCount(string rid)
        {
            Catering_Rules.SMS_MsgBLL smsRules = new Catering_Rules.SMS_MsgBLL();
            int num = smsRules.GetUNReadCount(rid);
            string str = string.Format("您有{0}条未读信息！",num);
            lblMesNumbers.Text = str;
        }
    }
}